Word 批量替换工具

一次性完成多组文字替换,支持 .docx 格式。

选择 Word 文件
📄
点击选择或拖入 .docx 文件
仅支持 .docx 格式(Word 2007+)
替换规则 1 条规则
查找内容替换为
替换选项
命令行用法 Python

如需脚本自动化,可直接调用 replace.py:

python replace.py \ --input "文档.docx" \ --output "文档_替换后.docx" \ --rules "旧词A=新词B" "旧词C=新词D" "旧词E=新词F" # 从 JSON 文件读取规则(支持大量规则) python replace.py \ --input "文档.docx" \ --output "文档_替换后.docx" \ --rules-file rules.json \ --ignore-case

JSON 规则文件格式:[{"find":"旧词","replace":"新词"}, ...]